#ifndef CONFIG_H
#define CONFIG_H

#include <QWidget>
#include "ettadatastruct.h"
#include "blldataflow.h"

namespace Ui {
class Config;
}

class QPushButton;
class Config : public QWidget
{
    Q_OBJECT

public:
    explicit Config(QWidget *parent = nullptr);
    ~Config();

private slots:
    void on_btnPerformance_toggled(bool checked);
    void on_btnParamSet_toggled(bool checked);
    void on_btnSysUpdate_toggled(bool checked);
    void on_btnLog_toggled(bool checked);
    void on_btnUserManage_toggled(bool checked);
    void on_btnAbout_toggled(bool checked);
    void on_btnSystemConfig_toggled(bool checked);
    void on_btnFactory_toggled(bool checked);

    void setWidgetVisibleSlot(int permission);
    void retranslateUiSlot();

protected:
    void showEvent(QShowEvent *);

private:
    void initWidget();

private:
    Ui::Config *ui;
    BllDataFlow *bdf;
    QMap<int, QPushButton *> map;
};

#endif // CONFIG_H
